﻿<UserControl x:Class="CI.Views.Diagramming.DiagramLayoutOptionsView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:cm="clr-namespace:Caliburn.PresentationFramework;assembly=Caliburn.PresentationFramework" 
            xmlns:Actions="clr-namespace:Caliburn.PresentationFramework.Actions;assembly=Caliburn.PresentationFramework" xmlns:Utility="clr-namespace:CI.Utility" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <TextBlock VerticalAlignment="Bottom" Margin="0,0,0,3" Text="Layout Algorithm"/>
        <Button Grid.Column="2" cm:Message.Attach="[Event Click] = [Action Redraw()]" Content="X" />
        <ComboBox ItemsSource="{Binding Path=Algorithms}" SelectedItem="{Binding Path=SelectedAlgorithm, UpdateSourceTrigger=PropertyChanged}" d:LayoutOverrides="Height" Grid.Column="1"/>    
    </Grid>

</UserControl>
